
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.all.js"></script>
    <style>
        #content1{
            width: 1020px;
            height: 400px;
        }
    </style>

</head>
<layout name="Iflayout"/>
<div class="xyh-content">

    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><em class="glyphicon glyphicon-cloud-upload"></em>
                {$list['name']}
                <span class="xyh-pos">
                <i class="glyphicon glyphicon-log-out"></i>
                <a href="javascript:void(0)">{$list['name']}</a> <em class="glyphicon glyphicon-menu-right"></em>
                </span>
            </h3>
        </div>
    </div>


    <div class="row">
        <div class="col-lg-12">
            <div class="box">
                <div class="body">
                    <form class="form-horizontal" id="formValidate" role="form" method="post" action="{:U('Page/edit')}">
                        <div>
                            <div class="form-group">
                                <label  class="col-sm-2 control-label">摘要</label>
                                <div class="col-sm-9">
                                    <textarea name="description" id="inputDescription" class="form-control" rows="3" placeholder="请填写摘要">{$list['description']}</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">内容</label>
                                <div class="col-sm-9">
                                    <textarea name="content" id="content1"   placeholder="请填写内容">{$list['content']}</textarea>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-9">
                                <input type="hidden" name="id" value="{$list['id']}" />
                                <input type="hidden" name="pid" value="{$list['pid']}" />
                                <div class="btn-group">
                                    <button type="submit" class="btn btn-primary"> <i class="glyphicon glyphicon-saved"></i>
                                        保存
                                    </button>
                                </div>
                            </div>
                        </div>

                    </form>

                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">

    var ue = UE.getEditor('content1');
    ue.ready(function() {
        ue.setHeight(250);
        //设置编辑器的内容
        // ue.setContent('hello');
        // //获取html内容，返回: <p>hello</p>
        // var html = ue.getContent();
        //获取纯文本内容，返回: hello
        // var txt = ue.getContentTxt();
    });

</script>